package cn.wdcode.demo.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 角色信息表
 * </p>
 *
 * @author wudi
 * @since 2016-12-20
 */
@TableName("sys_role_info")
public class RoleInfo extends Model<RoleInfo> {

    private static final long serialVersionUID = 1L;

	/**
	 * 账户号
	 */
	@TableId(value="ACCOUNT")
	private String account;
	/**
	 * 角色ID
	 */
	@TableField(value="ROLE_ID")
	private String roleId;
	/**
	 * 角色名称
	 */
	@TableField(value="ROLE_NAM")
	private String roleNam;
	/**
	 * 角色信息
	 */
	@TableField(value="ROLE_DESC")
	private String roleDesc;
	/**
	 * 角色状态
	 */
	@TableField(value="ROLE_STATE")
	private String roleState;
	/**
	 * 系统ID
	 */
	@TableField(value="SYS_ID")
	private String sysId;
	/**
	 * 创建标识 0为初始化创建 1为用户创建
	 */
	@TableField(value="CREA_SIGN")
	private String creaSign;
	/**
	 * 角色创建时间
	 */
	@TableField(value="ROLE_DATE")
	private String roleDate;
	/**
	 * 预留字段2
	 */
	@TableField(value="PRESET2")
	private String preset2;


	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getRoleNam() {
		return roleNam;
	}

	public void setRoleNam(String roleNam) {
		this.roleNam = roleNam;
	}

	public String getRoleDesc() {
		return roleDesc;
	}

	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}

	public String getRoleState() {
		return roleState;
	}

	public void setRoleState(String roleState) {
		this.roleState = roleState;
	}

	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	public String getCreaSign() {
		return creaSign;
	}

	public void setCreaSign(String creaSign) {
		this.creaSign = creaSign;
	}

	public String getRoleDate() {
		return roleDate;
	}

	public void setRoleDate(String roleDate) {
		this.roleDate = roleDate;
	}

	public String getPreset2() {
		return preset2;
	}

	public void setPreset2(String preset2) {
		this.preset2 = preset2;
	}

	@Override
	protected Serializable pkVal() {
		return this.account;
	}

}
